package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmSensitiveDto;
import com.heima.model.wemedia.pojos.WmSensitive;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

public interface IWmSensitiveService extends IService<WmSensitive> {
    /**
     * 新增敏感词
     * @param wmSensitive
     * @return
     */
    public ResponseResult saveSensitive(WmSensitive wmSensitive);

    /**
     * 敏感词列表查询
     * @param dto
     * @return
     */
    public ResponseResult listSensitive(WmSensitiveDto dto);

    /**
     * 敏感词修改
     * @param wmSensitive
     * @return
     */
    public ResponseResult updateSensitive(WmSensitive wmSensitive);

    /**
     * 删除敏感词
     * @param id
     * @return
     */
    public ResponseResult deleteSensitive( Integer id);
}
